import React,{useState} from 'react';

function Test1() {
    const [state,setstate] =useState("碰磕")
    console.log(state,setstate);
    return (
        <div>
            {state}
            <button onClick={()=>{
                setstate("学习Study")
            }}>修改state</button>
        </div>
    );
}

export default Test1;